﻿using System;
using System.Globalization;
using System.Windows.Data;

namespace MapleLeaf.Client {

    public class AmountConverter : IValueConverter {

        public object Convert(object value, Type targetType, object parameter, CultureInfo culture) {
            return "￥" + ((int)value / 100.0).ToString();
        }

        public object ConvertBack(object value, Type targetType, object parameter, CultureInfo culture) {
            throw new NotImplementedException();
        }
        public AmountConverter() { }

        static AmountConverter() {
            Default = new AmountConverter();
        }
        public static readonly AmountConverter Default;
    }
}
